<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('修改附件')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-busAccessory-edit" th:object="${busAccessory}">
            <input id="accessoryId" name="accessoryId" th:field="*{accessoryId}"  type="hidden">
			<div class="form-group">	
				<label class="col-sm-3 control-label">附件类型：</label>
				<div class="col-sm-8">
					<input id="accessoryType" name="accessoryType" th:field="*{accessoryType}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">附件名称：</label>
				<div class="col-sm-8">
					<input id="accessoryName" name="accessoryName" th:field="*{accessoryName}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">附件地址：</label>
				<div class="col-sm-8">
					<input id="address" name="address" th:field="*{address}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">附件大小：</label>
				<div class="col-sm-8">
					<input id="size" name="size" th:field="*{size}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">上传时间：</label>
				<div class="col-sm-8">
					<input id="createTime" name="createTime" th:field="*{createTime}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">附件关联id：</label>
				<div class="col-sm-8">
					<input id="relevancyId" name="relevancyId" th:field="*{relevancyId}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">附件关联类型（新闻/资源/资源需求/企业明细/公共文档等）：</label>
				<div class="col-sm-8">
					<input id="relevancyType" name="relevancyType" th:field="*{relevancyType}" class="form-control" type="text">
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "system/busAccessory";
		$("#form-busAccessory-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			focusCleanup: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-busAccessory-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
